  package com.szy.diary;
import android.database.sqlite.*;
import android.content.*;

public class MysqliteHelper extends SQLiteOpenHelper
{
	final String CREAT_TABLE_SQL="CREATE TABLE DIARY(ID INTEGER PRIMARY KEY AUTOINCREMENT,TIME DATE NOT NULL,CONTENT TEXT NOT NULL);";
	
	public MysqliteHelper(Context context, String name,SQLiteDatabase.CursorFactory factory, int version){
		super(context,name,factory,version);
	} 
	@Override
	public void onCreate(SQLiteDatabase p1)
	{
		p1.execSQL(CREAT_TABLE_SQL);
	}

	@Override
	public void onUpgrade(SQLiteDatabase p1, int p2, int p3)
	{
		// TODO: Implement this method
	}

}
